<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}  
        <link href="/vendor/we/release/wangEditor.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.config.js"></script>
        <script type="text/javascript" src="/admin/vendor/ue/ueditor.all.js"></script>
    </head>
    <body>
        <div class="wrapper">
	        {include file="public/nav"}  
	        <div id="page-wrapper" style="min-height: 325px;">
	            <div class="row">
		            <div class="col-lg-12">
		                <h1 class="page-header">添加分类</h1>
		            </div>
	            </div>
	            <div class="row">
		            <div class="col-lg-6">
                        <form role="form" action="insert" method="post">
                            <div class="form-group">
                                <select class="form-control" name="fid">
                                    <option value="0">顶层菜单</option>
                                    {volist name="data" id="cat"}
                                    <option value="{$cat.cat_id}">{$cat.cat_name}</option>
                                    {/volist}
                                </select>
                            </div>
                            <div class="form-group">
                                <label>分类名称</label>
                                <input class="form-control" type="text" name="cat_name">
                                <p class="help-block">分类名称不能超过30个字符</p>
                            </div>
                            <div class="form-group">
                                <label>排序</label>
                                <input class="form-control" type="text" name="cat_order" value="10">
                                <p class="help-block"></p>
                            </div>
                            <div class="form-group">
                                <label>详细内容</label>
                                <script id="editor" type="text/plain"></script>                                    
                            </div>
                            <div class="form-group">
                                <input class="btn btn-primary" type="submit" value="提交" />
                            </div>
                            
                        </form>
		            </div>
	            </div>
	        </div>
            {include file="public/footer"}
        </div>
        {include file="public/javascript"}
        <script type="text/javascript">
         var ue = UE.getEditor('editor');
        </script>
    </body>
</html>
